from django.conf.urls import include, url
#from ims.views import *
from ims import views as im

urlpatterns = [

#設計人員
    url(r"^machine$",im.machine , name="所有機臺名稱"),
    url(r'^design_msg$', im.design_msgs, name="刀具基本信息"),
    url(r'^design_msg/(?P<pk>[0-9]+)$', im.design_msg, name="刀具信息實例"),
    url(r'^design_msg/(?P<pk>[0-9]+)/wheel$', im.wheel, name="砂輪信息"),
    url(r'^design_msg/(?P<pk>[0-9]+)/desi_size$', im.desi_size, name="尺寸信息"),
    url(r'^cutter_type$', im.cutter_type, name="刀具類型"),

#生技人員
    url(r'^biotech/(?P<pk>[0-9]+)$', im.biotech, name="生計信息砂輪修整錄入"),
    url(r'^biotech/(?P<pk>[0-9]+)/wheel_no$', im.wheel_no, name="砂輪序號"),
    url(r'^grind/(?P<pk>[0-9]+)$', im.grind, name="磨削條件"),
    url(r'^grind/(?P<pk>[0-9]+)/wheel_no$', im.grind_wheel_no, name="磨削條件查詢砂輪調整"),

#設計人員
    url(r'^productor/(?P<pk>[0-9]+)$', im.productor, name="生產人員信息錄入"),
    url(r'^productor/(?P<pk>[0-9]+)/addit$', im.productor_addit, name="錄入"),
    url(r'^program$', im.program, name="程式參數補正"),
    url(r'^grind_msg$', im.grind_msg, name="待在制的刀"),

#尺寸代碼修改
    url(r'^desi_size/(?P<pk>[0-9]+)$', im.desi_size_up, name="修改尺寸代碼"),
    url(r'^save_as/(?P<pk>[0-9]+)$', im.save_as, name="另存新版"),
    url(r'^related_tool$', im.related_tool, name="關聯刀具查詢"),
    url(r'^copy_wheel/(?P<pk>[0-9]+)$', im.copy_wheel, name="複製砂輪信息"),
    url(r'^copy_wheel_sort/(?P<pk>[0-9]+)$', im.copy_wheel_sort, name="複製砂輪历史信息"),

    #數據統計
    url(r'data_nav$', im.data_nav, name="菜單選項"),
    url(r'export_data$', im.export_data, name="數據統計"),
    url(r'correct_data', im.correct_data, name="調機數據導出"),



    #可视化输出
    # url(r'detail_compensation_num', detail_compensation_num, name="各品牌砂輪加工刀具细部补偿频率"),
    # url(r'granularity_compensation', granularity_compensation, name="各品牌砂輪不同粒度加工刀具细部补偿频率"),

    #砂轮数据导出
    #url(r'wheel_correct_data', wheel_correct_data, name="砂轮數據導出"),







]
